package org.jeecg.modules.cosmetic.model.vo;

import java.math.BigDecimal;
import java.util.Comparator;

public class IngredientComparatorVO implements Comparator<FormulaExcelVO> {
    /**
     * 定义比较方法
     * @param vo1
     * @param vo2
     * @return
     */
    @Override
    public int compare(FormulaExcelVO vo1, FormulaExcelVO vo2) {
        return new BigDecimal(vo2.getActualContent()).compareTo(new BigDecimal(vo1.getActualContent()));
    }
}
